<script setup lang="ts">
import { onMounted } from 'vue';
import {  setCompany_id } from './tool/login';
const resize = () => {
  let fs = document.body.clientWidth / 75;
  // 上面的75是根据设计图尺寸修改，例如设计图宽为1220，给左右两边各留10px，即1220-20=1200，1200/16(字体大小)等于75
  if (fs > 16) {
    fs = 16;
  } else if (fs < 14) {
    fs = 14;
  }
  // document.body.parentNode.style = "font-size: " + fs + "px;";
  document.body.style.fontSize = fs + "px"
  // document.addEventListener('touchmove', e => {
  //   e.preventDefault()
  // }, { passive: false })
}
onMounted(() => {
  resize()
  setCompany_id(464)
})
</script>

<template>
  <router-view to="/"></router-view>
</template>

<style scoped lang='scss'></style>
